package com.jxdinfo.hussar.activitidemo.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jxdinfo.hussar.activitidemo.bean.FileInfo;
import com.jxdinfo.hussar.activitidemo.dao.FileInfoDao;

/**
 * 文件表实现类
 * 
 * @author zzd
 *
 */
@Service
public class FileInfoServiceImpl implements FileInfoService {

	@Autowired
	FileInfoDao fileinfodao;

	@Override
	public int insert(FileInfo fileInfo) {
		return fileinfodao.insert(fileInfo);
	}

	@Override
	public int delete(FileInfo fileInfo) {
		return fileinfodao.deleteById(fileInfo);
	}

	@Override
	public Map<String, String> findById(String sFileId) {
		return fileinfodao.selectById(sFileId);
	}

	@Override
	public int deletaBatch(Map<String, Object> map) {
		return fileinfodao.deletaBatch(map);
	}

	@Override
	public List<FileInfo> selectBySaveName(String sSaveName) {
		return fileinfodao.selectBySaveName(sSaveName);
	}

}
